﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using QLKTX1._0.GUI.QLSV;
using QLKTX1._0.GUI.CauHinh;
using QLKTX1._0.DAO;
using QLKTX1._0.DTO;
namespace QLKTX1._0.GUI
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void thoatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void danhMucToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            FrmQLDM f = new FrmQLDM();

            f.TopLevel = false;

            f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }

        private void tiênĐiênNươcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        private void thôngTinLiênLacToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //FrmQLDM f = new FrmQLDM();
            FrmGioiThieu f = new FrmGioiThieu();
            f.TopLevel = false;

            f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            FrmQLSV f = new FrmQLSV();
             
            f.TopLevel = false;

            f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }

        private void hôSơSinhViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
           FrmQLHSSV f = new FrmQLHSSV();

           f.TopLevel = false;

           f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

           f.AutoSize = false;

            f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1 

          f.Visible = true;

             
        }

        private void danhMucNhaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmQLDM f = new FrmQLDM();

            f.TopLevel = false;

            f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }

        private void danhMucSinhViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmQLSV f = new FrmQLSV();

            f.TopLevel = false;

            f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }

        private void nhânViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmNhanVien f = new FrmNhanVien();

            f.TopLevel = false;

          //  f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            // f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }

        private void đơtĐăngKyToolStripMenuItem_Click(object sender, EventArgs e)
        {
             //FrmDotDangKy f = new FrmDotDangKy();
             FrmDotDangKyMoi f = new FrmDotDangKyMoi();

            f.TopLevel = false;

            f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            // f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }

        private void caiĐătToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void tabControl1_Load(object sender, EventArgs e)
        {

        }

        private void FrmMain_Load(object sender, EventArgs e)
        {
          //  FrmLogin f = new FrmLogin();
            //is.Top = false;
           // f.Top = true;
          //  f.Visible = true;
        }

        private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void toolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void hêThôngToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void điênToolStripMenuItem_Click(object sender, EventArgs e)
        {
           
            FrmLoaiChiPhi f = new FrmLoaiChiPhi();

            f.TopLevel = false;

            f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }

        private void nhaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmKhungGiaNha f = new FrmKhungGiaNha();

            f.TopLevel = false;

            f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }

        private void phongToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmDsPhong f = new FrmDsPhong();

            f.TopLevel = false;

            f.FormBorderStyle = FormBorderStyle.None; // ko co vien 

            f.Dock = DockStyle.Fill;

            tabControl1.TabPages.Add(f);//them frm vao tabControl1

            f.Visible = true;
        }
    }
}
